QINMike
2007-05-22
I'm getting some weird errors when trying to write the config files. after clicking write I get these errors:
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 36 in /var/www/nagiosweb/createtxt.php on line 350
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 37 in /var/www/nagiosweb/createtxt.php on line 350
Done writing Configuration Files
1 Hosts Defined
1 HostGroups Defined
...
Then after clicking verify it says:
Nagios 3.0a4
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-08-2007
License: GPL
Reading configuration data...
Error: Could not expand member services specified in servicegroup (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 3)
Below are the 10 lines following the error
3: # This file generated by create php script, Josh
4:
5: define servicegroup{
6: servicegroup_name Mike
7: alias Mike
8: members ,24x7_Ping,,24x7_Ping,Silvia,24x7_Ping
9: }
10:
***> One or more problems was encountered while processing the config files...
....
Any help would be appricated...
Jonathan
2007-06-25
I suspect you deleted a service and the corresponding entry was not properly removed from the servicegroup 'Mike'. The only way I've found to fix that is to go rummaging through the tables looking for the offending null member.
Although I also noticed you're running Nagios 3.0. That may or may not be influencing this since nagiosweb was designed for 2.x.