Search found 31 matches

by briannd81
Thu Jun 18, 2015 8:55 pm
Forum: Nagios XI
Topic: Marker wrong location in Google Map Xi Plugin
Replies: 3
Views: 813

Re: Marker wrong location in Google Map Xi Plugin

No error in httpd logs. host in cache has the correct coordinates.
by briannd81
Wed Jun 17, 2015 4:53 pm
Forum: Nagios XI
Topic: Marker wrong location in Google Map Xi Plugin
Replies: 3
Views: 813

Marker wrong location in Google Map Xi Plugin

Hi,

When I pin a host using the following coordinate, the marker shows up in Brazil instead of Weatherford, TX. This problem does not exist when I put this coordinate on Google Map itself. Please advise.

Coord: 32.728116,-97.786346
by briannd81
Thu Jun 11, 2015 9:13 am
Forum: Nagios XI
Topic: SQL Error: Incorrect format 'nagios_servicestatus'
Replies: 2
Views: 668

Re: SQL Error: Incorrect format 'nagios_servicestatus'

I restore from backup. It is good now. Please mark this close.
by briannd81
Thu Jun 11, 2015 7:21 am
Forum: Nagios XI
Topic: SQL Error: Incorrect format 'nagios_servicestatus'
Replies: 2
Views: 668

SQL Error: Incorrect format 'nagios_servicestatus'

I'm getting the following error in the Operations Screen and many other areas within Nagios Xi.

SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_servicestatus'

It looks like the nagios_servicestatus table may have been corrupted.

Please advise.
by briannd81
Thu Jun 04, 2015 3:29 pm
Forum: Nagios XI
Topic: exec_sql_query(DB_NAGIOSQL, $sql)
Replies: 3
Views: 972

Re: exec_sql_query(DB_NAGIOSQL, $sql)

It's my mistake. The solution is posted below. Originally I had this ... the if will return the first row only. if (($rs = exec_sql_query(DB_NAGIOSQL, $sql))) { if (!$rs->EOF) { print strval($rs->fields["br_num"]) . "\n"; $rs->MoveNext(); } } Change if to while to go through all ...
by briannd81
Thu Jun 04, 2015 3:01 pm
Forum: Nagios XI
Topic: exec_sql_query(DB_NAGIOSQL, $sql)
Replies: 3
Views: 972

exec_sql_query(DB_NAGIOSQL, $sql)

I tried to do a "select * from tbl_host" using the built-in function exec_sql_query available from /usr/local/nagiosxi/html/includes/db.inc.php. exec_sql_query(DB_NAGIOSQL, $sql) However, it only returns the "first" row. The table itself, however, has 1139 rows and I'm expecting ...
by briannd81
Fri May 29, 2015 6:17 pm
Forum: Nagios XI
Topic: Apply Config Failed
Replies: 7
Views: 1436

Re: Apply Config Failed

Got it, thanks! You may close this topic.
by briannd81
Fri May 29, 2015 9:53 am
Forum: Nagios XI
Topic: Apply Config Failed
Replies: 7
Views: 1436

Re: Apply Config Failed

Understood. Is there a way to tell Nagios Apply Config to ignore the new field added? I did not modify anything else on tbl_host other than added a new field.
by briannd81
Fri May 29, 2015 7:29 am
Forum: Nagios XI
Topic: Apply Config Failed
Replies: 7
Views: 1436

Re: Apply Config Failed

I added the new field via mysql's web front end (phpmyadmin).
by briannd81
Thu May 28, 2015 8:53 pm
Forum: Nagios XI
Topic: Apply Config Failed
Replies: 7
Views: 1436

Apply Config Failed

Apply Configuration in CCM threw these errors: Error: Invalid host object directive 'branch_id'. Error: Could not add object property in file '/usr/local/nagios/etc/hosts/p160042m.cfg' on line 33. It has something to do with the "branch_id" field we created for table "tbl_host" u...